import {defineStore} from "pinia";
import {Upload} from "@element-plus/icons-vue";
import {shallowRef} from "vue";

const toolStore = defineStore("toolStore", {
    state:()=>{
        return {
          options:[
            {
              title:"媒体管理",
              body:[
                {title:"媒体库",icon:shallowRef(Upload),path:"/tool/showFile"},
                {title:"上传媒体",icon:shallowRef(Upload),path:"/media/upload"},
                {title:"媒体设置",icon:shallowRef(Upload),path:"/media/setting"},
              ]
            },
            {
              title:"工具管理",
              body:[
                {title:"工具列表",icon:shallowRef(Upload),path:"/tool/list"},
                {title:"工具设置",icon:shallowRef(Upload),path:"/tool/setting"},
              ]
            }
          ]
        }
    },
    getters:{}
})

export default toolStore;